

class RequestBean {
  String? id;
  String? url;
  String? method;
  DateTime? createTime;
  Map<String, dynamic>? headers;
  String? body; 
  RequestBean({this.id, this.url, this.method, this.createTime, this.headers, this.body});
  //tojson
  Map<String, dynamic> toJson() {
    return {
      'id': id,
      'url': url,
      'method': method,
      'createTime': createTime?.millisecondsSinceEpoch,
      'headers': headers,
      'body': body,
    };
  }
  //fromjson
  factory RequestBean.fromJson(Map<String, dynamic> json) {
    return RequestBean(id: json['id'], url: json['url'], method: json['method'], createTime: json['createTime'], headers: json['headers'], body: json['body']);
  }
}


